﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EFFC.Net.Interface
{
    public enum PropertiesByAction
    {
        Enable,
        Visable
    }

    public interface IActionPermission
    {
        /// <summary>
        /// 權限設定的ActionID，允許多個ActionID，每個之間口號分割
        /// </summary>
        string ActionID { set; get; }

        event EFFC.Net.Event.EventDefine.ActionSettingEvent SetAuthoritiesByAction;

        /// <summary>
        /// 功過ActionID進行本控件的權限控制
        /// </summary>
        /// <param name="authorizedActionid">被授權的ActionID</param>
        void ControlByPermission(string authorizedActionid);
    }
}
